package com.recipe.service.impl;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.recipe.mapper.DishStepMapper;
import com.recipe.entity.DishStep;
import com.recipe.service.DishStepService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * (DishStep)表服务实现类
 *
 * @author makejava
 * @since 2024-06-24 13:51:17
 */
@Service("dishStepService")
public class DishStepServiceImpl extends ServiceImpl<DishStepMapper, DishStep> implements DishStepService {


    @Override
    public List<DishStep> getByDishId(Long dishId) {
        return this.list(new LambdaQueryWrapper<DishStep>().eq(DishStep::getDishid, dishId));

    }
}

